﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GanoESB
{
    /// <summary>
    /// 服务调用详情
    /// </summary>
    public class ServiceCall
    {
        /// <summary>
        /// 调用Id
        /// </summary>
        string CallId { get; set;  }

        /// <summary>
        /// 用户名
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// 服务名称
        /// </summary>
        public string ServiceName { get; set; }

        /// <summary>
        /// 服务方法
        /// </summary>
        public string ServiceMethod { get; set; }

        /// <summary>
        /// 执行时间
        /// </summary>
        public DateTime ExecuteTime { get; set; }

        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime FinishTime { get; set; }

        /// <summary>
        /// 时长
        /// </summary>
        public long Duration { get; set; }
        
        /// <summary>
        /// 错误消息
        /// </summary>
        public string ErrorMsg { get; set; }

        public ServiceCall()
        {
            CallId = Guid.NewGuid().ToString();
        }
    }
}
